	<div id="newsnav_wrapper">
		<ul class="newsnav">
			<li class="active"><a href="#"><span>{#PLIGG_Visual_Submit3_Header#}</span></a></li>
		</ul>
	</div>
	<div class="box sview">
		{checkActionsTpl location="tpl_pligg_submit_step3_start"}
		{literal}
		<script type="text/javascript" language="javascript">
		//<![CDATA[
		var gPageIsOkToExit = false;	
		function submitEdgeStory() {
			gPageIsOkToExit = true;
			frms = document.getElementsByName("ATISUBMIT");				
			if (frms) {
				if (frms[0])
					frms[0].submit();
			}
		}	
		window.onbeforeunload = function (event) {
			if (gPageIsOkToExit)
				return;
	
			if (!event && window.event)
				event = window.event;						
			event.returnValue = "You have not hit the Submit Button to submit your story yet.";
		}
		//]]>
		</script>
		{/literal}
		{php}
			Global $db, $main_smarty, $dblang, $the_template, $linkres, $current_user;	
			$linkres=new Link;
			$linkres->id=$link_id = $_POST['id'];
			if (!is_numeric($link_id)) die();
			$linkres->read(FALSE);
			$linkres->print_summary();
			
			$main_smarty->assign('tags', $linkres->tags);
			if (!empty($linkres->tags)) {
				$tags_words = str_replace(",", ", ", $linkres->tags);
				$tags_url = urlencode($linkres->tags);
				$main_smarty->assign('tags_words', $tags_words);
				$main_smarty->assign('tags_url', $tags_url);
			}
		
			$main_smarty->assign('submit_url', $url);
			$main_smarty->assign('submit_url_title', $linkres->url_title);
			$main_smarty->assign('submit_id', $linkres->id);
			$main_smarty->assign('submit_type', $linkres->type());
			$main_smarty->assign('submit_title', $link_title);
			$main_smarty->assign('submit_content', $link_content);
			$main_smarty->assign('submit_trackback', $trackback);
		{/php}
		<br />
		<form action="{$URL_submit}" method="post" id="thisform" name="ATISUBMIT" >
			<input type="hidden" name="phase" value="3" />
			<input type="hidden" name="randkey" value="{$templatelite.post.randkey}" />
			<input type="hidden" name="id" value="{$submit_id}" />
			<input type="hidden" name="trackback" value="{$templatelite.post.trackback|escape:"html"}" />
			<div class="a_center">
				<input type="button" onclick="gPageIsOkToExit = true; document.location.href='{$my_base_url}{$my_pligg_base}/submit.php?id='+this.form.id.value+'&trackback='+this.form.trackback.value;" value="{#PLIGG_Visual_Submit3_Modify#}" class="submit_button" />&nbsp;&nbsp;
				<input type="button" onclick="submitEdgeStory();" value="{#PLIGG_Visual_Submit3_SubmitStory#}" class="submit_button" />
			</div>
		</form>
		{checkActionsTpl location="tpl_submit_step_3_end"}
	</div>